package com.sysoflife.composite;

import com.vaadin.ui.Label;
import com.vaadin.ui.Window;

public class Helper {
	
	public static Window getDescWindow(String title, String content){
		
		Window descWindow = new Window();
		descWindow.setModal(true);
		descWindow.center();		
		descWindow.setCaption(title);
		descWindow.setWidth("300px");
		
		Label contentLabel = new Label();
		contentLabel.setContentMode(Label.CONTENT_XHTML);
		contentLabel.setValue(content);
		
		descWindow.addComponent(contentLabel);
		
		return descWindow;		
	}

}
